/**
 * Creat with IntelliJ IDEA
 * Description
 * User: mamba24
 * Date: 2022-04-07
 * Time: 9:03
 * To BE A Better Person-2020-3-2
 */
abstract class Shape{
    abstract public void func();
}

class circle extends Shape{

    @Override
    public void func() {
        System.out.println("⚪");
    }
}
class triangle extends Shape{
    @Override
    public void func() {
        System.out.println("▲");
    }
}
class flawer extends Shape{
    @Override
    public void func() {
        System.out.println("❀");
    }
}
public class TestDemo {
    public static void main(String[] args) {
        circle s=new circle();
        triangle s2=new triangle();
        flawer s3=new flawer();
        Shape[] s4={s,s2,s3};
        for (Shape s5:s4) {
            DrawShape(s5);

        }
        /*s.func();
        s2.func();
        s3.func();*/
    }
    public static void DrawShape(Shape shape){
        shape.func();
    }
}
